<%@ tag pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ attribute name="id" required="true"%>
<%@ attribute name="caption" required="true"%>
<%@ attribute name="name" required="false"%>
<%@ attribute name="cheked" required="false"%>

<div class="form-group">
    <label class="col-md-12">
        <input id="${id}" name="${empty name? id: name}" value="${empty cheked ? false: cheked}" type="checkbox"/>
        ${caption}
    </label>
</div>